%% Plot contour
load('./data/FigS5.mat')

figure
imagesc(mod_depth1,mod_depth2,rabi_freq1/1e6)
colorbar
set(gca,'YDir','normal')
%     title('Rabi Freq ms=-1','FontSize',26)
title('\gamma_e B_2','FontSize',26)
xlabel('IQ voltage 2 (a.u.)','FontSize',26)
ylabel('IQ voltage 1 (a.u.)','FontSize',26)
set(gca,'FontSize',24)

% saveas(gcf,'DQ_calib_B2','epsc')

figure
imagesc(mod_depth1,mod_depth2,rabi_freq2/1e6)
colorbar
set(gca,'YDir','normal')
%     title('Rabi Freq ms=+1','FontSize',26)

title('\gamma_e B_1','FontSize',26)
xlabel('IQ voltage 2 (a.u.)','FontSize',26)
ylabel('IQ voltage 1 (a.u.)','FontSize',26)
set(gca,'FontSize',24)
% saveas(gcf,'DQ_calib_B1','epsc')

figure
imagesc(mod_depth1,mod_depth2,sqrt(rabi_freq1.^2+rabi_freq2.^2)/1e6)
colorbar
set(gca,'YDir','normal')
%     title('Rabi Freq total','FontSize',26)

title('\omega_e','FontSize',26)
xlabel('IQ voltage 2 (a.u.)','FontSize',26)
ylabel('IQ voltage 1 (a.u.)','FontSize',26)
set(gca,'FontSize',24)
% saveas(gcf,'DQ_calib_we','epsc')
